package com.ruoyi.rgpp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rgpp.mapper.JibencompanyMapper;
import com.ruoyi.rgpp.domain.Jibencompany;
import com.ruoyi.rgpp.service.IJibencompanyService;
import com.ruoyi.common.core.text.Convert;

/**
 * 企业基本信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-13
 */
@Service
public class JibencompanyServiceImpl implements IJibencompanyService 
{
    @Autowired
    private JibencompanyMapper jibencompanyMapper;

    /**
     * 查询企业基本信息
     * 
     * @param id 企业基本信息主键
     * @return 企业基本信息
     */
    @Override
    public Jibencompany selectJibencompanyById(Long id)
    {
        return jibencompanyMapper.selectJibencompanyById(id);
    }

    /**
     * 查询企业基本信息列表
     * 
     * @param jibencompany 企业基本信息
     * @return 企业基本信息
     */
    @Override
    public List<Jibencompany> selectJibencompanyList(Jibencompany jibencompany)
    {
        return jibencompanyMapper.selectJibencompanyList(jibencompany);
    }

    /**
     * 新增企业基本信息
     * 
     * @param jibencompany 企业基本信息
     * @return 结果
     */
    @Override
    public int insertJibencompany(Jibencompany jibencompany)
    {
        return jibencompanyMapper.insertJibencompany(jibencompany);
    }

    /**
     * 修改企业基本信息
     * 
     * @param jibencompany 企业基本信息
     * @return 结果
     */
    @Override
    public int updateJibencompany(Jibencompany jibencompany)
    {
        return jibencompanyMapper.updateJibencompany(jibencompany);
    }

    /**
     * 批量删除企业基本信息
     * 
     * @param ids 需要删除的企业基本信息主键
     * @return 结果
     */
    @Override
    public int deleteJibencompanyByIds(String ids)
    {
        return jibencompanyMapper.deleteJibencompanyByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除企业基本信息信息
     * 
     * @param id 企业基本信息主键
     * @return 结果
     */
    @Override
    public int deleteJibencompanyById(Long id)
    {
        return jibencompanyMapper.deleteJibencompanyById(id);
    }
}
